package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sensor
 * 
 * @author ruoyi
 * @date 2020-09-10
 */
public class Sensor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long sensorId;

    /** 传感器类型 */
    @Excel(name = "传感器类型")
    private Long sensorTypeId;

    /** 传感器名称 */
    @Excel(name = "传感器名称")
    private String sensorName;


    /** 所属节点 */
    @Excel(name = "所属节点")
    private String nodeId;


    /** 所属沼气站 */
    @Excel(name = "所属沼气站")
    private String deptId;


    private DeviceNode node;

    private SysDept dept;

    public void setSensorId(Long sensorId) 
    {
        this.sensorId = sensorId;
    }

    public Long getSensorId() 
    {
        return sensorId;
    }
    public void setSensorTypeId(Long sensorTypeId) 
    {
        this.sensorTypeId = sensorTypeId;
    }
    public Long getSensorTypeId() 
    {
        return sensorTypeId;
    }
    public void setSensorName(String sensorName) 
    {
        this.sensorName = sensorName;
    }

    public String getSensorName() 
    {
        return sensorName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sensorId", getSensorId())
            .append("sensorTypeId", getSensorTypeId())
            .append("sensorName", getSensorName())
            .toString();
    }

    public SysDept getDept() {
        return dept;
    }

    public void setDept(SysDept dept) {
        this.dept = dept;
    }

    public DeviceNode getNode() {
        return node;
    }

    public void setNode(DeviceNode node) {
        this.node = node;
    }
}
